package com.beans;

import org.springframework.context.annotation.Bean;

public class UserBean {
    @Bean
    public User user1(){
        User user = new User();
        user.setId(1);
        user.setName("hu");
        return user;
    }

}
